from django.urls import path, re_path
from django.views.generic import RedirectView
from . import views
app_name = 'myapp'
urlpatterns = [
    path('', views.home, name='home'),
    path('dynamic-urls/', views.dynamic_url_view, name='dynamic_urls'),
    path('redirect-home/', RedirectView.as_view(url='/', permanent=True), name='redirect_home'),
    path('redirect-view/', views.redirect_view, name='redirect_view'),
    path('hello/', views.hello_django, name='hello_django'),
    path('add/<int:a>/<int:b>/', views.add_numbers, name='add_numbers'),
    re_path(r'^post-(\d+)/$', views.post_view, name='post_view'),
]
path('', views.home, name='home'),

